package com.scut.fy.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

/**
 * 系统的组织结构
 * @author JY
 * @version 1.0
 * @date 2021/8/13 10:25
 */
@TableName("sys_group")
public class SysGroup extends Model<SysGroup> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "group_id", type = IdType.ASSIGN_ID)
    private long groupId;
    @TableField("group_name")
    private String groupName;
    @TableField("group_code")
    private String groupCode;
    @TableField("group_desc")
    private String groupDesc;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;

    private String status;
    /**
     * 删除标识（0-正常,1-删除（历史部门））
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 父节点ID
     */
    @TableField("parent_id")
    private long parentId;
    /**
     * 继承者id
     * 如果组织变更，有其他继承组织，继承组织能够查看这个组织的历史数据
     */
    private long successorId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public long getGroupId() {
        return groupId;
    }

    public void setGroupId(long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public String getGroupDesc() {
        return groupDesc;
    }

    public void setGroupDesc(String groupDesc) {
        this.groupDesc = groupDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public long getSuccessorId() {
        return successorId;
    }

    public void setSuccessorId(long successorId) {
        this.successorId = successorId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
